package com.wn.springcloud;

import com.wn.myrule.MyRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

//启动类
//Ribbon 和Eureka 整合以后，客户端可以直接使用，不用关心IP和端口号
@SpringBootApplication
@EnableEurekaClient
//在微服务启动的时候就能加载我们自定义的Ribbon类
@RibbonClient(name="SPRINGCLOUD-PROVIDER-DEPT",configuration = MyRule.class)
public class DeptConsumer_80 {

    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_80.class,args);
    }
}
